package com.example.bean3;

import com.example.bean3.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    //属性名一致，否则指定实现类是谁
    @Autowired
    @Qualifier("userJdbcDaoImpl")
    private UserDao userDao;

    @Override
    public void add() {

    }
}




